<template>
  <div id="app">
    <el-container class="app-body">
    <el-header>AlInterview 在线系统</el-header>
    <el-container>
      <el-aside width="200px">
        <el-menu
        router
        default-active="/user/list"
        >
        <el-menu-item index="/user/list">
          <i class="el-icon-setting"></i>
          <span slot="title">用户管理</span>
        </el-menu-item>
        <el-menu-item index="/questions/list">
          <i class="el-icon-tickets"></i>
          <span slot="title">题库管理</span>
        </el-menu-item>
        <!-- <el-menu-item index="3">
          <i class="el-icon-setting"></i>
          <span slot="title">系统设置</span>
        </el-menu-item> -->
      </el-menu>
     </el-aside>
        <el-container>
          <el-main>
            <!-- 路由匹配到的组件将渲染在这里 -->
            <router-view></router-view>
          </el-main>
          <el-footer>power by ybfweb</el-footer>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  name: 'app',
  data(){
    return{
      
    }
  },
  mounted(){
    this.$router.push('/user/list')
  }
};
</script>

<style>
body,
html,
#app,
.app-body {
  height: 100%;
  width: 100%;
}
* {
  padding: 0;
  margin: 0;
  list-style: none;
  box-sizing: border-box;
}
#app {
  font-family: Helvetica, sans-serif;
  text-align: center;
}
.el-header,
.el-footer {
  background-color: #771703;
  color: #fff;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  color: #fff;
  text-align: center;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
}

body > .el-container {
  margin-bottom: 40px;
}
</style>
